﻿using RStudio.UIFramwork;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace RStudio.Elevator
{
    /// <summary>
    /// 
    /// </summary>
    public class AppEntry : MonoBehaviour
    {
        public ElevatorComponent Elevator;


        public void Start()
        {
            new ElevatorModuleCenter();
            PlanElevator data = new(ElevatorType.Demo.ToString())
            {
                FloorDatas = new List<DataFloor>()
                {
                    new(1, 0),
                    new(2, 5),
                    new(3, 10),
                }
            };
            Elevator.Init(ElevatorType.Demo.ToString(), data);


            new UIModuleCenter();
            UIModuleCenter.Instance.SendToQueue(new UIEventArgs()
            {
                Type = typeof(PageElevator),
                UIEventType = UIEventType.Open,
            });
        }
    }
}
